package Spring1;

import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class Oper {
    @Resource(name = "user1")
    private User user;
    public void say(){
        System.out.println(user);
    }
}
